package com.zoe.app;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.starter.zoe.ZoeService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author Zoe.Zhang
 * @date 2021/11/30
 * @description
 */
@SpringBootApplication
public class MainAppStarter {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(MainAppStarter.class, args);
        try {
            String s = run.getBean(ZoeService.class).sayZoe();
            System.out.println(s);
        }
        catch (JsonProcessingException e) {
            throw new RuntimeException(e);
        }
    }
}
